package elven.d.web.event.listener;

import org.springframework.context.ApplicationListener;

import elven.d.common.log.LogFactory;
import elven.d.web.event.hello.ContentEvent;

/**
 * 张三监听器,直接指定注册泛型是ContentEvent
 * 这就就会只接收来自ContentEvent的广播了
 * @author liuyongyuan
 */
public class ZhangsanListener implements ApplicationListener<ContentEvent> {

	@Override
	public void onApplicationEvent(ContentEvent event) {
		LogFactory.d().info("张三收到消息:{}", event.getSource());
	}

}
